package lab02.test35;

public class Salesman extends Employee {
    double basePay;
    double extraPay;
    int saleNumble;

    public Salesman() {
        this.basePay = basePay;
        this.saleNumble = saleNumble;
    }

    public void setBasePay(double basePay) {
        this.basePay = basePay;
    }

    public void setSaleNumble(int saleNumble) {
        this.saleNumble = saleNumble;
    }

    public double getBasePay() {
        return basePay;
    }

    public double getExtraPay() {
        return extraPay;
    }

    public int getSaleNumble() {
        return saleNumble;
    }

    public double getSalary() {
        return salary;
    }

    @Override
    double computeSalary() {
        if (saleNumble > 0 && saleNumble <= 50) {
            extraPay = 200;
        } else if (saleNumble > 50 && saleNumble <= 100) {
            extraPay = 500;
        } else if (saleNumble > 100) {
            extraPay = 1000;
        }
        return salary = basePay + extraPay;
    }
}
